home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / gui / donev102.lha / done / test.c < prev    next >
C/C++ Source or Header  |  1996-05-09  |  1KB  |  64 lines

  1. #include <clib/dos_protos.h>
  2. #include "done.h"
  3.  
  4. #define MY_VERSION_STRING "$VER:test1 By Stuart Kelly Copyright 1996 © Uses Done V 1.02"
  5.  
  6. char *version = MY_VERSION_STRING;
  7.  
  8. void main(void)
  9. {
  10.  int a;
  11.  int b=0;
  12.  printf(" test1 By Stuart Kelly Copyright 1996 ©\n");
  13.  printf(" Written Using Dice C\n");
  14.  printf(" Uses '%s' Working Requester\n", DONE_VERSION_A);
  15.  printf(" Press Return When Ready-> ");
  16.  getchar();
  17.  
  18.  /*
  19.  ** NOTE: For ST_SetTopAndLeft(....) to work it must be called
  20.  ** before ST_WorkReq(....)
  21.  */ 
  22.  ST_SetTopAndLeft(90,139);      /* Put Window in Center */
  23.  
  24.  ST_WorkReq(NULL);
  25.  
  26.  ST_SetScreenTitle(" Please Wait, Working......");
  27.  
  28.  for (a=0; a<ALL_DONE; a++)
  29.  {
  30.  printf("  %d\n", a);
  31.  /*  printf("  %.2f\n", a);  print %f with 2 decimal places!!!1*/
  32.  ST_SetDone(a);
  33.  }
  34.  
  35.  printf(" %d\n", a);
  36.  
  37.  ST_SetDone(ALL_DONE);
  38.  
  39.  ST_SetTitles(" All Done", "(100%) Done");
  40.  
  41.  printf(" Press Return to Clear -> ");
  42.  getchar();
  43.  
  44.  ST_ClearWR();
  45.  
  46.  printf(" Press Return To Set to 30%% -> ");
  47.  getchar();
  48.  
  49.  ST_SetDone(30);
  50.  
  51.  printf(" Press Return To Set to 50%% -> ");
  52.  getchar();
  53.  
  54.  ST_SetDone(HALF_DONE);
  55.  
  56.  printf(" Press Return To Quit\n");
  57.  getchar();
  58.  
  59.  ST_FreeWorkReq();
  60.  
  61.  return;
  62. }
  63.  
  64.